package com.ruoyi.purchase.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.purchase.domain.PoProduct;
import com.ruoyi.purchase.domain.PoType;
import com.ruoyi.purchase.service.PoTypeService;
import com.ruoyi.purchase.mapper.PoTypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author DY
* @description 针对表【po_type】的数据库操作Service实现
* @createDate 2022-01-04 11:32:50
*/
@Service
public class PoTypeServiceImpl extends ServiceImpl<PoTypeMapper, PoType>
    implements PoTypeService{

    @Autowired
    private PoTypeMapper poTypeMapper;

    @Override
    public List<PoProduct> findProductTypeList(PoType poType) {
        return poTypeMapper.findProductTypeList(poType);
    }

    @Override
    public PoType findEditProType(Integer typeId) {
        return poTypeMapper.findEditProType(typeId);
    }
}




